//package com.example.lsrsbackend.listener;
//
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.core.MessageListener;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class SeatStatusUpdateListener implements MessageListener {
//    @Override
//    public void onMessage(Message message, byte[] pattern) {
//        try {
//            SeatStatusDTO status = JsonUtil.fromJson(message.toString(), SeatStatusDTO.class);
//            // 通过WebSocket广播状态更新
//            SeatWebSocketController.broadcastSeatUpdate(status);
//            log.debug("广播座位状态更新: seatId={}, status={}", status.getSeatId(), status.getStatus());
//        } catch (Exception e) {
//            log.error("处理座位状态更新消息失败", e);
//        }
//    }
//}
